package com.dongman.model;

import lombok.*;

import java.util.Date;
import java.util.List;

/**
 * 小说的基本信息
 */

public class Novel {

    private String id;

    private Date createDate;

    private Date updateDate;

    //小说名字
    private String name;

    //简介
    private String desc;

    //当前章节最后一章的描述
    private String totalChaptersDesc;

    //当前章节总数
    private Integer totalChapters;

    //停刊 最终话
    private String status;

    //小说地址
    private String link;

    //题材
    private String ticai;

    //收藏
    private String shouCang;

    //人气
    private String renQi;

    //页面更新时间
    private String yeMianDate;

    private List<Chapter> chapter;

    public Novel(String id, Date createDate, Date updateDate, String name, String desc,
                 String totalChaptersDesc,
                 Integer totalChapters,
                 String status, String link, String ticai, String shouCang, String renQi, String yeMianDate) {
        this.id = id;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.name = name;
        this.desc = desc;
        this.totalChaptersDesc = totalChaptersDesc;
        this.totalChapters = totalChapters;
        this.status = status;
        this.link = link;
        this.ticai = ticai;
        this.shouCang = shouCang;
        this.renQi = renQi;
        this.yeMianDate = yeMianDate;
    }
    public Novel(){

    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getTotalChaptersDesc() {
        return totalChaptersDesc;
    }

    public void setTotalChaptersDesc(String totalChaptersDesc) {
        this.totalChaptersDesc = totalChaptersDesc;
    }

    public Integer getTotalChapters() {
        return totalChapters;
    }

    public void setTotalChapters(Integer totalChapters) {
        this.totalChapters = totalChapters;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getTicai() {
        return ticai;
    }

    public void setTicai(String ticai) {
        this.ticai = ticai;
    }

    public String getShouCang() {
        return shouCang;
    }

    public void setShouCang(String shouCang) {
        this.shouCang = shouCang;
    }

    public String getRenQi() {
        return renQi;
    }

    public void setRenQi(String renQi) {
        this.renQi = renQi;
    }

    public String getYeMianDate() {
        return yeMianDate;
    }

    public void setYeMianDate(String yeMianDate) {
        this.yeMianDate = yeMianDate;
    }

    public List<Chapter> getChapter() {
        return chapter;
    }

    public void setChapter(List<Chapter> chapter) {
        this.chapter = chapter;
    }

    /*public String toString() {
        System.out.println("创建时间：" + this.createDate);
        System.out.println("更新时间：" + this.updateDate);
        System.out.println("标题：" + this.name);
        System.out.println("当前章节：" + this.totalChapters);
        System.out.println("当前章节描述：" + this.totalChaptersDesc);
        System.out.println("小说状态：" + this.status);
        System.out.println("连接：" + this.link);
        System.out.println("题材：" + this.ticai);
        System.out.println("收藏数：" + this.shouCang);
        System.out.println("人气数：" + this.renQi);
        System.out.println("最近更新时间：" + this.yeMianDate);
        System.out.println("简介：" + this.desc);
        System.out.println();
        return "";
    }*/
}
